public class Demo1 {

    public static void main(String[] args) throws InterruptedException {
        Object obj=new Object();
        synchronized (obj){
            obj.wait();
        }
        System.out.println("结束阻塞等待");
    }
}
